package org.omg.GIOP;

//

import com.cognition.util.marshal.JavaPrimitiveInputStream;
import com.cognition.util.marshal.JavaPrimitiveOutputStream;
import java.io.IOException;

// Enum definition : ReplyStatusType_1_0
//
// @author OpenORB Compiler
//
public final class ReplyStatusType_1_0 implements org.omg.CORBA.portable.IDLEntity
{
	//
	// Internal member value 
	//
	private int _ReplyStatusType_1_0_value;

	//
	// Enum member NO_EXCEPTION value 
	//
	public static final int _NO_EXCEPTION = 0;

	//
	// Enum member NO_EXCEPTION
	//
	public static final ReplyStatusType_1_0 NO_EXCEPTION = new ReplyStatusType_1_0(_NO_EXCEPTION);

	//
	// Enum member USER_EXCEPTION value 
	//
	public static final int _USER_EXCEPTION = 1;

	//
	// Enum member USER_EXCEPTION
	//
	public static final ReplyStatusType_1_0 USER_EXCEPTION = new ReplyStatusType_1_0(_USER_EXCEPTION);

	//
	// Enum member SYSTEM_EXCEPTION value 
	//
	public static final int _SYSTEM_EXCEPTION = 2;

	//
	// Enum member SYSTEM_EXCEPTION
	//
	public static final ReplyStatusType_1_0 SYSTEM_EXCEPTION = new ReplyStatusType_1_0(_SYSTEM_EXCEPTION);

	//
	// Enum member LOCATION_FORWARD value 
	//
	public static final int _LOCATION_FORWARD = 3;

	//
	// Enum member LOCATION_FORWARD
	//
	public static final ReplyStatusType_1_0 LOCATION_FORWARD = new ReplyStatusType_1_0(_LOCATION_FORWARD);

	//
	// Return the internal member value
	// @return	the member value
	//
	public int value()
	{
		return _ReplyStatusType_1_0_value;
	}

	//
	// Return a enum member from its value
	// @param		an enum value
	// @return	an enum member
	//
	public static ReplyStatusType_1_0 from_int( int value )
	{
		switch ( value )
		{
		case 0 :
			return NO_EXCEPTION;
		case 1 :
			return USER_EXCEPTION;
		case 2 :
			return SYSTEM_EXCEPTION;
		case 3 :
			return LOCATION_FORWARD;
		}
		throw new org.omg.CORBA.BAD_OPERATION();
	}

	//
	// Private constructor
	// @param		the enum value for this new member
	//
	private ReplyStatusType_1_0( int value )
	{
		_ReplyStatusType_1_0_value = value;
	}


}
